From: Florian Müllner Date: Thu, 20 Feb 2014 19:14:21 +0000 (+0100) Subject: shellDBus: Fix LaunchExtensionPreferences() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2722 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2d24536caf8cbd4d3c5aea705cddb57f1a23d7c9;p=gnome-shell.git shellDBus: Fix LaunchExtensionPreferences() Commit 5dedc5d8ba4f0e6fa removed "unused" functionality which was still used by that method. Launch it via GAppInfo instead, which still supports passing URIs. https://bugzilla.gnome.org/show_bug.cgi?id=724813 --- diff --git a/js/ui/shellDBus.js b/js/ui/shellDBus.js index 2bc149c62..6dbb5aeb6 100644 --- a/js/ui/shellDBus.js +++ b/js/ui/shellDBus.js @@ -371,8 +371,10 @@ const GnomeShellExtensions = new Lang.Class({ LaunchExtensionPrefs: function(uuid) { let appSys = Shell.AppSystem.get_default(); let app = appSys.lookup_app('gnome-shell-extension-prefs.desktop'); - app.launch(global.display.get_current_time_roundtrip(), - ['extension:///' + uuid], -1, null); + let info = app.get_app_info(); + let timestamp = global.display.get_current_time_roundtrip(); + info.launch_uris(['extension:///' + uuid], + global.create_app_launch_context(timestamp, -1)); }, ReloadExtension: function(uuid) {